package com.ztesoft.web.filecommon.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class FileDirectoryDefineArg {
    private String pk_name = "DIRECTORY_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<FileDirectoryDefineCriteria> oredCriteria;

    public FileDirectoryDefineArg() {
        oredCriteria = new ArrayList<FileDirectoryDefineCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<FileDirectoryDefineCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(FileDirectoryDefineCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public FileDirectoryDefineCriteria or() {
    	FileDirectoryDefineCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public FileDirectoryDefineCriteria createCriteria() {
    	FileDirectoryDefineCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected FileDirectoryDefineCriteria createCriteriaInternal() {
    	FileDirectoryDefineCriteria criteria = new FileDirectoryDefineCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<FileDirectoryDefineCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<FileDirectoryDefineCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<FileDirectoryDefineCriterion> getAllCriteria() {
            return criteria;
        }

        public List<FileDirectoryDefineCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new FileDirectoryDefineCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new FileDirectoryDefineCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new FileDirectoryDefineCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new FileDirectoryDefineCriterion(condition, value1, value2));
        }

        public FileDirectoryDefineCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andDirectoryIdIsNull() {
            addCriterion("DIRECTORY_ID is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdIsNotNull() {
            addCriterion("DIRECTORY_ID is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdEqualTo(Integer value) {
            addCriterion("DIRECTORY_ID =", value, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdNotEqualTo(Integer value) {
            addCriterion("DIRECTORY_ID <>", value, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdGreaterThan(Integer value) {
            addCriterion("DIRECTORY_ID >", value, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DIRECTORY_ID >=", value, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdLessThan(Integer value) {
            addCriterion("DIRECTORY_ID <", value, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdLessThanOrEqualTo(Integer value) {
            addCriterion("DIRECTORY_ID <=", value, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdLike(Integer value) {
            addCriterion("DIRECTORY_ID like ", value, "DIRECTORY_ID", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdNotLike(Integer value) {
            addCriterion("DIRECTORY_ID  not like ", value, "DIRECTORY_ID", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdLeftLike(Integer value) {
            addCriterion("DIRECTORY_ID like ", value, "DIRECTORY_ID", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdNotLeftLike(Integer value) {
            addCriterion("DIRECTORY_ID  not like ", value, "DIRECTORY_ID", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdRightLike(Integer value) {
            addCriterion("DIRECTORY_ID like ", value, "DIRECTORY_ID", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdNotRightLike(Integer value) {
            addCriterion("DIRECTORY_ID  not like ", value, "DIRECTORY_ID", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdIn(List<Integer> values) {
            addCriterion("DIRECTORY_ID  in ", values, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdNotIn(List<Integer> values) {
            addCriterion("DIRECTORY_ID not in ", values, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdBetween(Integer value1, Integer value2) {
            addCriterion("DIRECTORY_ID between ", value1, value2, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirectoryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DIRECTORY_ID not between ", value1, value2, "DIRECTORY_ID");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andSourceDataIdIsNull() {
            addCriterion("SOURCE_DATA_ID is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdIsNotNull() {
            addCriterion("SOURCE_DATA_ID is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID =", value, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdNotEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <>", value, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdGreaterThan(Integer value) {
            addCriterion("SOURCE_DATA_ID >", value, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID >=", value, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdLessThan(Integer value) {
            addCriterion("SOURCE_DATA_ID <", value, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <=", value, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdNotLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdNotLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdNotRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID  in ", values, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdNotIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID not in ", values, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID between ", value1, value2, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID not between ", value1, value2, "SOURCE_DATA_ID");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andDirOrderIsNull() {
            addCriterion("DIR_ORDER is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderIsNotNull() {
            addCriterion("DIR_ORDER is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderEqualTo(Integer value) {
            addCriterion("DIR_ORDER =", value, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderNotEqualTo(Integer value) {
            addCriterion("DIR_ORDER <>", value, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderGreaterThan(Integer value) {
            addCriterion("DIR_ORDER >", value, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("DIR_ORDER >=", value, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderLessThan(Integer value) {
            addCriterion("DIR_ORDER <", value, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderLessThanOrEqualTo(Integer value) {
            addCriterion("DIR_ORDER <=", value, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderLike(Integer value) {
            addCriterion("DIR_ORDER like ", value, "DIR_ORDER", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderNotLike(Integer value) {
            addCriterion("DIR_ORDER  not like ", value, "DIR_ORDER", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderLeftLike(Integer value) {
            addCriterion("DIR_ORDER like ", value, "DIR_ORDER", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderNotLeftLike(Integer value) {
            addCriterion("DIR_ORDER  not like ", value, "DIR_ORDER", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderRightLike(Integer value) {
            addCriterion("DIR_ORDER like ", value, "DIR_ORDER", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderNotRightLike(Integer value) {
            addCriterion("DIR_ORDER  not like ", value, "DIR_ORDER", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderIn(List<Integer> values) {
            addCriterion("DIR_ORDER  in ", values, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderNotIn(List<Integer> values) {
            addCriterion("DIR_ORDER not in ", values, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderBetween(Integer value1, Integer value2) {
            addCriterion("DIR_ORDER between ", value1, value2, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andDirOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("DIR_ORDER not between ", value1, value2, "DIR_ORDER");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andSourceXpathIsNull() {
            addCriterion("SOURCE_XPATH is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathIsNotNull() {
            addCriterion("SOURCE_XPATH is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathEqualTo(String value) {
            addCriterion("SOURCE_XPATH =", value, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathNotEqualTo(String value) {
            addCriterion("SOURCE_XPATH <>", value, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathGreaterThan(String value) {
            addCriterion("SOURCE_XPATH >", value, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathGreaterThanOrEqualTo(String value) {
            addCriterion("SOURCE_XPATH >=", value, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathLessThan(String value) {
            addCriterion("SOURCE_XPATH <", value, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathLessThanOrEqualTo(String value) {
            addCriterion("SOURCE_XPATH <=", value, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathLike(String value) {
            addCriterion("SOURCE_XPATH like ", value, "SOURCE_XPATH", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathNotLike(String value) {
            addCriterion("SOURCE_XPATH  not like ", value, "SOURCE_XPATH", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathLeftLike(String value) {
            addCriterion("SOURCE_XPATH like ", value, "SOURCE_XPATH", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathNotLeftLike(String value) {
            addCriterion("SOURCE_XPATH  not like ", value, "SOURCE_XPATH", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathRightLike(String value) {
            addCriterion("SOURCE_XPATH like ", value, "SOURCE_XPATH", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathNotRightLike(String value) {
            addCriterion("SOURCE_XPATH  not like ", value, "SOURCE_XPATH", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathIn(List<String> values) {
            addCriterion("SOURCE_XPATH  in ", values, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathNotIn(List<String> values) {
            addCriterion("SOURCE_XPATH not in ", values, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathBetween(String value1, String value2) {
            addCriterion("SOURCE_XPATH between ", value1, value2, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSourceXpathNotBetween(String value1, String value2) {
            addCriterion("SOURCE_XPATH not between ", value1, value2, "SOURCE_XPATH");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andSeqIsNull() {
            addCriterion("SEQ is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqIsNotNull() {
            addCriterion("SEQ is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqEqualTo(Integer value) {
            addCriterion("SEQ =", value, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqNotEqualTo(Integer value) {
            addCriterion("SEQ <>", value, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqGreaterThan(Integer value) {
            addCriterion("SEQ >", value, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqGreaterThanOrEqualTo(Integer value) {
            addCriterion("SEQ >=", value, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqLessThan(Integer value) {
            addCriterion("SEQ <", value, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqLessThanOrEqualTo(Integer value) {
            addCriterion("SEQ <=", value, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqLike(Integer value) {
            addCriterion("SEQ like ", value, "SEQ", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqNotLike(Integer value) {
            addCriterion("SEQ  not like ", value, "SEQ", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqLeftLike(Integer value) {
            addCriterion("SEQ like ", value, "SEQ", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqNotLeftLike(Integer value) {
            addCriterion("SEQ  not like ", value, "SEQ", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqRightLike(Integer value) {
            addCriterion("SEQ like ", value, "SEQ", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqNotRightLike(Integer value) {
            addCriterion("SEQ  not like ", value, "SEQ", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqIn(List<Integer> values) {
            addCriterion("SEQ  in ", values, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqNotIn(List<Integer> values) {
            addCriterion("SEQ not in ", values, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqBetween(Integer value1, Integer value2) {
            addCriterion("SEQ between ", value1, value2, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andSeqNotBetween(Integer value1, Integer value2) {
            addCriterion("SEQ not between ", value1, value2, "SEQ");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andTargetXpathIsNull() {
            addCriterion("TARGET_XPATH_ is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathIsNotNull() {
            addCriterion("TARGET_XPATH_ is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathEqualTo(String value) {
            addCriterion("TARGET_XPATH_ =", value, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathNotEqualTo(String value) {
            addCriterion("TARGET_XPATH_ <>", value, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathGreaterThan(String value) {
            addCriterion("TARGET_XPATH_ >", value, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathGreaterThanOrEqualTo(String value) {
            addCriterion("TARGET_XPATH_ >=", value, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathLessThan(String value) {
            addCriterion("TARGET_XPATH_ <", value, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathLessThanOrEqualTo(String value) {
            addCriterion("TARGET_XPATH_ <=", value, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathLike(String value) {
            addCriterion("TARGET_XPATH_ like ", value, "TARGET_XPATH_", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathNotLike(String value) {
            addCriterion("TARGET_XPATH_  not like ", value, "TARGET_XPATH_", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathLeftLike(String value) {
            addCriterion("TARGET_XPATH_ like ", value, "TARGET_XPATH_", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathNotLeftLike(String value) {
            addCriterion("TARGET_XPATH_  not like ", value, "TARGET_XPATH_", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathRightLike(String value) {
            addCriterion("TARGET_XPATH_ like ", value, "TARGET_XPATH_", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathNotRightLike(String value) {
            addCriterion("TARGET_XPATH_  not like ", value, "TARGET_XPATH_", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathIn(List<String> values) {
            addCriterion("TARGET_XPATH_  in ", values, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathNotIn(List<String> values) {
            addCriterion("TARGET_XPATH_ not in ", values, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathBetween(String value1, String value2) {
            addCriterion("TARGET_XPATH_ between ", value1, value2, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andTargetXpathNotBetween(String value1, String value2) {
            addCriterion("TARGET_XPATH_ not between ", value1, value2, "TARGET_XPATH_");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andStaffIdIsNull() {
            addCriterion("STAFF_ID is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdIsNotNull() {
            addCriterion("STAFF_ID is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdEqualTo(Integer value) {
            addCriterion("STAFF_ID =", value, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("STAFF_ID <>", value, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdGreaterThan(Integer value) {
            addCriterion("STAFF_ID >", value, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID >=", value, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdLessThan(Integer value) {
            addCriterion("STAFF_ID <", value, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("STAFF_ID <=", value, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdNotLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdLeftLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdNotLeftLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdRightLike(Integer value) {
            addCriterion("STAFF_ID like ", value, "STAFF_ID", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdNotRightLike(Integer value) {
            addCriterion("STAFF_ID  not like ", value, "STAFF_ID", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdIn(List<Integer> values) {
            addCriterion("STAFF_ID  in ", values, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("STAFF_ID not in ", values, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID between ", value1, value2, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STAFF_ID not between ", value1, value2, "STAFF_ID");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andStateDateIsNull() {
            addCriterion("STATE_DATE is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateIsNotNull() {
            addCriterion("STATE_DATE is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateEqualTo(Date value) {
            addCriterion("STATE_DATE =", value, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateNotEqualTo(Date value) {
            addCriterion("STATE_DATE <>", value, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateGreaterThan(Date value) {
            addCriterion("STATE_DATE >", value, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("STATE_DATE >=", value, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateLessThan(Date value) {
            addCriterion("STATE_DATE <", value, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateLessThanOrEqualTo(Date value) {
            addCriterion("STATE_DATE <=", value, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateLike(Date value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateNotLike(Date value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateLeftLike(Date value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateNotLeftLike(Date value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateRightLike(Date value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateNotRightLike(Date value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateIn(List<Date> values) {
            addCriterion("STATE_DATE  in ", values, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateNotIn(List<Date> values) {
            addCriterion("STATE_DATE not in ", values, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateBetween(Date value1, Date value2) {
            addCriterion("STATE_DATE between ", value1, value2, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andStateDateNotBetween(Date value1, Date value2) {
            addCriterion("STATE_DATE not between ", value1, value2, "STATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }
        public FileDirectoryDefineCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateEqualTo(Date value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateNotEqualTo(Date value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateGreaterThan(Date value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateLessThan(Date value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateNotLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateLeftLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateNotLeftLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateRightLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateNotRightLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateIn(List<Date> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateNotIn(List<Date> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

        public FileDirectoryDefineCriteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (FileDirectoryDefineCriteria) this;
        }

    }

    public static class FileDirectoryDefineCriteria extends GeneratedCriteria {

        protected FileDirectoryDefineCriteria() {
            super();
        }
    }

    public static class FileDirectoryDefineCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected FileDirectoryDefineCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected FileDirectoryDefineCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected FileDirectoryDefineCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected FileDirectoryDefineCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected FileDirectoryDefineCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected FileDirectoryDefineCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}